// mycomponents/mycouponlist/index.js
Component({
  options: {
    addGlobalClass: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    couponList:Object
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    couponclick(e) {
      let that = this;
      var item = e.currentTarget.dataset;
      // if (swip.type === 1) {
      wx.navigateTo({
        url: '/pages/home/couponDetail/index?stockId=' + item.stockId
      });
      // }
    },
  }
})
